home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
internet
/
sweeper
/
samples
/
olecon~1
/
wizards
/
automain.frm
< prev
next >
Wrap
Text File
|
1995-11-22
|
7KB
|
231 lines
VERSION 4.00
Begin VB.Form frmMainWizard
BorderStyle = 3 'Fixed Dialog
Caption = "Create Automation Server"
ClientHeight = 4050
ClientLeft = 2460
ClientTop = 2910
ClientWidth = 6810
Height = 4455
Left = 2400
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4050
ScaleWidth = 6810
ShowInTaskbar = 0 'False
Top = 2565
Width = 6930
Begin VB.CheckBox chkSatellite
Caption = "Use Satellite DLL &Localization"
Height = 375
Left = 1560
TabIndex = 6
Top = 2400
Visible = 0 'False
Width = 3015
End
Begin VB.CheckBox chkLoser
Caption = "I need to be used with a &retarded system and must not have LFN's"
Height = 375
Left = 1560
TabIndex = 5
Top = 2760
Visible = 0 'False
Width = 5055
End
Begin VB.TextBox txtUseful
Height = 375
Left = 1440
TabIndex = 4
Text = "Text1"
Top = 1440
Visible = 0 'False
Width = 5175
End
Begin VB.CommandButton cmdNext
Caption = "&Next >"
Default = -1 'True
Height = 375
Left = 4320
TabIndex = 1
Top = 3555
Width = 1095
End
Begin VB.CommandButton btnFinishCancel
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 5520
TabIndex = 2
Top = 3555
Width = 1095
End
Begin VB.CommandButton cmdBack
Caption = "< &Back"
Enabled = 0 'False
Height = 375
Left = 3240
TabIndex = 0
Top = 3555
Width = 1095
End
Begin VB.Label lblMessage
Caption = "Welcome to the Automation Server Creation Wizard. Please Click ""Next"" to begin."
Height = 975
Left = 1440
TabIndex = 3
Top = 240
Width = 5175
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 6600
Y1 = 3375
Y2 = 3375
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 120
X2 = 6600
Y1 = 3360
Y2 = 3360
End
End
Attribute VB_Name = "frmMainWizard"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub btnFinishCancel_Click()
If iStage = STAGE_FINISHING Then
Unload Me
Else
TerminateApplication
End If
End Sub
Private Sub cbosubclass_Click()
g_szSubClassName = cbosubclass.List(cbosubclass.ListIndex)
End Sub
Private Sub chkloser_Click()
g_fLoser = chkloser.Value
End Sub
Private Sub chkSatellite_Click()
g_fSatellite = chkSatellite.Value
End Sub
Private Sub cmdBack_Click()
iStage = iStage - 1
If iStage = STAGE_SUBCLASS And chkSubClass.Value <> vbChecked Then iStage = iStage - 1
m_SwitchPage
End Sub
Private Sub cmdNext_Click()
If iStage = STAGE_CONTROLNAME And chkSubClass.Value <> vbChecked Then iStage = iStage + 1
iStage = iStage + 1
m_SwitchPage
End Sub
Private Sub Form_Load()
Top = (Screen.Height - Height) / 3
Left = (Screen.Width - Width) / 2
End Sub
Private Sub m_SwitchPage()
Select Case iStage
Case STAGE_WELCOME
lblmessage = "Welcome to the Control Creation Wizard. Please Click ""Next"" to begin."
chkSatellite.Visible = False
chkSubClass.Visible = False
cbosubclass.Visible = False
txtuseful.Visible = False
chkSubClass.Visible = False
chkloser.Visible = False
cmdBack.Enabled = False
cmdNext.Enabled = True
Case STAGE_CONTROLNAME
lblmessage = "Please Enter a Name for your Control."
chkSatellite.Visible = True
txtuseful.Text = szControlName
chkSubClass.Visible = True
cbosubclass.Visible = False
chkloser.Visible = True
txtuseful.Visible = True
cmdBack.Enabled = True
cmdNext.Enabled = True
txtuseful.SetFocus
Case STAGE_SUBCLASS
lblmessage = "Please Choose a control class on which to base your control."
chkSatellite.Visible = False
chkSubClass.Visible = False
cbosubclass.Visible = True
cbosubclass.SetFocus
chkloser.Visible = False
txtuseful.Visible = False
cmdBack.Enabled = True
cmdNext.Enabled = True
Case STAGE_CONTROLDIR
lblmessage = "Please Enter the location you'd like the source files to go."
chkSatellite.Visible = False
chkSubClass.Visible = False
cbosubclass.Visible = False
txtuseful.Text = szFinalDir
txtuseful.Visible = True
cmdBack.Enabled = True
chkloser.Visible = False
cmdNext.Enabled = True
txtuseful.SetFocus
Case STAGE_FINISHING
lblmessage = "Thank you. Please Choose Finish to Complete the Creation of your control."
chkSatellite.Visible = False
chkSubClass.Visible = False
cbosubclass.Visible = False
txtuseful.Visible = False
chkloser.Visible = False
cmdBack.Enabled = True
cmdNext.Enabled = False
btnFinishCancel.Caption = "&Finish"
btnFinishCancel.SetFocus
End Select
End Sub
Private Sub txtuseful_Change()
Select Case iStage
Case STAGE_CONTROLNAME
szControlName = txtuseful.Text
Case STAGE_CONTROLDIR
szFinalDir = txtuseful.Text
End Select
End Sub